package shape;

public class Triangle extends Shape {
    private double d;
    private double g;

    public Triangle(double d, double g) {
        this.d = d;
        this.g = g;
    }

    @Override
    public void calcArea(){
        area = d * g / 2;
        System.out.println("面积 Area ："+area);
    }
}
